<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="author" content="runoob">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/mobile/css/index.css"/>
    <link rel="stylesheet" href="__STATIC_URL__/static/mobile/css/addmchat.css"/>
    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js"></script>
    <script src="__STATIC_URL__/static/layer.mobile/layer_mobile/layer.js"></script>
</head>
<style>

</style>
<body style="background: #2585d8">

<!------------------导航-------------------------->
<section>

<!--------------------------主要内容区域------------------------------------->
<div class="content" style="margin: 0;background: #2585d8;text-align: center">


</div>
</section>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    layer.open({type: 2});
    wx.config({
        debug: false,
        appId: "{$jssdk['appId']}",
        timestamp: "{$jssdk['timestamp']}",
        nonceStr: "{$jssdk['nonceStr']}",
        signature: "{$jssdk['signature']}",
        jsApiList: [
            'addCard'

        ]
    });
    wx.ready(function () {
//        wx.hideAllNonBaseMenuItem();
        wx.checkJsApi({
            jsApiList: [
                'addCard',
            ],
        });
       wx.addCard({
            cardList: [
                {
                    cardId: '{$card.card_id}',
                    cardExt: '{$card.addcard}'
                }
            ],
           success: function (res) {
               window.location.replace("{:url('mobile/cardget/cardgetsuccess')}")
           },
        });

    })
</script>
</body>
</html>
